package com.example.demo1.mytest;

public class Overloading {

    public int sum(int a,int b){
        return a+b;
    }
    public int sum(int a,int b,int c){
        return a+b+c;
    }

    public static void main(String[] args) {
        int a=5,b=6,c=7;
        System.out.println(a+b);
        System.out.println(a+b+c);
    }
}
